package lwk.io;

import org.apache.poi.xwpf.usermodel.XWPFDocument;

import java.io.*;

public class XWPFDocumentTest {

    public static void main(String[] args) throws IOException {

        // 读：文件路径，输入流
        XWPFDocument document = new XWPFDocument(new FileInputStream("D:\\result\\02劳务人员保密协议.docx"));

        // 写：目标路径，输出流
        FileOutputStream fos = new FileOutputStream("D:\\result\\out\\输出.docx");

        document.write(fos);

        fos.flush();
        fos.close();

    }
}
